import Tree.StackBinaryTree;
import org.junit.Test;

/**
 * @author 杜伟毅
 * @version 1.0
 * @since 2024/09/10
 */

class Fish{
    int weight=1;
}

class Lake{
    Fish fish;
    void setFish(Fish s){
        fish=s;
    }
    void food(int m){
        fish.weight=fish.weight+m;
    }
}
public class JunitTest {


    public static void main(String[] args) {

        Fish fish = new Fish();
        System.out.println(fish.weight);
        Lake lake = new Lake();
        lake.setFish(fish);
        lake.food(120);
        System.out.println(fish.weight);
        System.out.println(lake.fish.weight);
    }
}
